//
//  YZMConfigureService.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/14.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YZMConfigureModel.h"
#import "YZMTradeTypeDef.h"

@interface YZMConfigureService : NSObject

@property (nonatomic, strong) YZMConfigureModel *defaultConfigure;
@property (nonatomic, assign) YZM_TRADE_TYPE tradeType;

+ (YZMConfigureService *)sharedServiceWithTradeType:(YZM_TRADE_TYPE)tradeType;
+ (instancetype)sharedService;
- (void)checkIfNeedRequestConfigureWithSuccess:(void (^)())sucess;//用于网络连接时 及进入点买首页面时调用
- (void)fetchConfigureDataSuccess:(void (^)())sucess failure: (void (^)(NSError *error))failure;//用于进入点买详细页面时调用
- (BOOL)isInTradeTimePeriods;//是否可交易
- (BOOL)isInTradeShowTimePeriods;//递延费是否显示
- (BOOL)isInLimitStockListWithStockCode:(NSString *)stockCode;//是否限制股

@end

@interface YZMTDConfigureService : YZMConfigureService

@end

@interface YZMONEConfigureService : YZMConfigureService

@end

@interface YZMSIMUConfigureService : YZMConfigureService

@end

@interface YZMFreeExperienceConfigureService :YZMConfigureService

@end

@interface YZMYLBConfigureService :YZMConfigureService

@end



